Skip to content

test(outdated-notice): force clientVars.updateCheck so specs pass with updates.tier off - #8584

Merged
JohnMcLear merged 2 commits into
developfrom
test/outdated-notice-force-update-check
Nov 28, 2026
Merged

JohnMcLear merged 2 commits into
developfrom
test/outdated-notice-force-update-check

Conversation

@JohnMcLear

Copy link
Copy Markdown
Member

Plugin CI runs core with updates.tier: "off". Since #8579 the pad then skips /api/version-status, so the outdated-notice specs that mock that endpoint never see a notice and time out. That breaks the "frontend / Playwright (core develop)" job in every ep_* plugin.

freshPad now defaults clientVars.updateCheck to true, so the specs no longer depend on the server's tier. The tier-off test still passes updateCheck: false and checks that no request is made. Production code is unchanged.

Tested locally with ep_font_size installed and the tier off: 4 failed before the change, 8/8 pass after.

🤖 Generated with Claude Code

https://claude.ai/code/session_01TcYAoDMav4BPPE9JrMtSvw

…h updates.tier off

Plugin CI runs core with updates.tier "off", so since #8579 the pad
skips /api/version-status and the specs that mock it never see a
notice. Default updateCheck to true in freshPad; the tier-off test
still overrides it to false.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TcYAoDMav4BPPE9JrMtSvw
@qodo-code-review

Copy link
Copy Markdown

ⓘ Qodo reviews are paused because the subscription is no longer active. Ask your workspace admin to reactivate the subscription to resume reviews. Manage billing

@qodo-free-for-open-source-projects

qodo-free-for-open-source-projects Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

PR Summary by Qodo

Make outdated-notice specs independent of the server update tier

🧪 Tests 🕐 Less than 10 minutes

Grey Divider

AI Description

• Default outdated-notice tests to updateCheck: true so mocked API scenarios run when plugin CI
 disables updates.
• Preserve the tier-off test’s explicit false override to verify no request is made.
Merge Risk 🟢 Low

Blast radius 🟢 Low 💥 0 capabilities

  • No production behavior changes identified.
Behavioral complexity 🟢 Low 🧩 Assessed behavior

  • No production behavior changes identified.
Potential damage 🟢 Low 🩹 Assessed behavior

  • No production behavior changes identified.
Assessed commit babe6f0
Diagram

graph TD
  Server["Server clientVars"] --> Helper["freshPad override"] --> Guard{"updateCheck enabled?"}
  Guard -->|yes| API["Mocked version API"] --> Notice["Notice assertions"]
  Guard -->|no| NoRequest["No request assertion"]
Loading
High-Level Assessment

Keep the override in the test helper: it makes mocked-endpoint specs independent of CI server configuration without changing production behavior. Changing the server tier or production guard would broaden the impact unnecessarily.

Files changed (1) +5 / -1

Tests (1) +5 / -1
outdated_notice.spec.tsDefault freshPad to enable update checks in notice specs +5/-1

Default freshPad to enable update checks in notice specs

• Sets updateCheck to true when installing test clientVars, regardless of the server tier. Per-test overrides still take precedence, preserving the tier-off test’s no-request check.

src/tests/frontend-new/specs/outdated_notice.spec.ts

@qodo-free-for-open-source-projects

qodo-free-for-open-source-projects Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0) 🎨 UX issues (0) 🔗 Cross-repo conflicts (0) 📜 Skill insights (0)

Grey Divider


Informational

1. Default-tier test misses server default ✓ Resolved
Description
The overrides object in freshPad hard-codes updateCheck: true, so the test titled 'default
tier — the version-status request is still made' never sees the server's real default. It would
still pass if the server stopped sending updateCheck: true for the default tier, and the title
then describes behavior the test no longer checks. The server-side tier-to-clientVar mapping remains
covered by updateCheckClientVar.ts, so this is a naming and coverage gap in the browser spec
rather than an untested production path.

Grey Divider

Tip of the day
💡 Did you know, you can turn these tips off under Display > Comment parts

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

@JohnMcLear
JohnMcLear merged commit 51c0bb3 into develop Nov 28, 2026
41 checks passed
@JohnMcLear
JohnMcLear deleted the test/outdated-notice-force-update-check branch November 28, 2026 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant